package gr.uop.cst.context.adaptation.artifacts.oom;

import gr.uop.cst.context.adaptation.Action;
import gr.uop.cst.context.adaptation.ContextAdaptationGenerator;
import java.lang.reflect.Field;

/**
 *
 * @author Ioannis Bourlakos <mi49@uop.gr>
 */
public class BeforeWriteFieldAdaptation extends AbstractFieldAdaptation {
    
    public BeforeWriteFieldAdaptation(String className, String fieldName, Action action) throws ClassNotFoundException, NoSuchFieldException {
        super(className,fieldName, action);
    }
    
    public BeforeWriteFieldAdaptation(Field f, Action action) {
        super(f,action);
    }
    
    @Override
    public void accept(ContextAdaptationGenerator cag) {
        cag.visit(this);
    }
    
}
